import { Injectable } from '@angular/core';

@Injectable()
export class DatePickerCalendarService {
  private _datePickerCalendar: { showYearByMonth: boolean };

  constructor() {}

  getRootComponent(): { showYearByMonth: boolean } {
    return this._datePickerCalendar;
  }

  setRootComponent(source: { showYearByMonth: boolean }): void {
    this._datePickerCalendar = source;
  }
}
